from django.db import models

# Create your models here.

class Person1802(models.Model):
    student_name = models.CharField(max_length = 20,unique = True)

    def __str__(self):
        return self.student_name
    
class User_Sql_Info(models.Model):
    user_name = models.CharField(max_length = 20)

    def __str__(self):
        return self.user_name

class Account_Sql_Info(models.Model):
    user_name = models.ForeignKey(User_Sql_Info,on_delete = models.CASCADE)
    github_acc = models.CharField(max_length = 100)
    gitee_acc = models.CharField(max_length = 100)
    coding_acc = models.CharField(max_length = 100)

    def __str__(self):
        return '姓名：'+user_name+'github账号：'+github_acc+'gitee账号：'+gitee_acc+'coding.net账号：'+coding_acc
    
    
